package com.ct.application.sysapis.request;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysApisSaveRequest {

    @NotBlank(message = "请输入权限路径")
    //权限路径
    private String path;

    @NotBlank(message = "请输入权限代号")
    //权限代号
    private String code;

    //父ID
    @NotNull(message = "请输入父ID")
    private Long parentId;

    //权限名称
    @NotBlank(message = "请输入权限名称")
    private String title;

    //权限方法
    private String method;

    //是否启用 1 启用 0禁用
    private Integer status;

    //排序标记
    @NotNull(message = "请输入排序标记")
    private Integer sorted;
}
